<!DOCTYPE html>
<!--
 * Copyright (c) 2010 The Baidu Authors. All rights reserved.  Use of this
 * source code is governed by a BSD-style license that can be found in the
 * LICENSE file.
-->
<html>
<script>
chrome.extension.onRequest.addListener(
  function( request, sender, sendResponse )
  {
    console.log( sender.tab ? "from a content script:" + sender.tab.url : "from the extension" );
    if( request == "queryHiddenMode" )
    {
      console.log( localStorage["hidden_mode"] );
      var mode = localStorage["hidden_mode"];
      if( mode == undefined )
      {
          mode = 'load';
      }
      sendResponse(mode);
    }
  }
);
</script>
</html>